﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowAll.aspx.cs" Inherits="Student_ShowAll" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataKeyNames="id" DataSourceID="ShowAllSqlDataSource" ForeColor="#333333" GridLines="None" OnRowCommand="GridView1_RowCommand">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="stuId" HeaderText="学号" SortExpression="stuId" />
                <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                <asp:BoundField DataField="classIn" HeaderText="班级" SortExpression="classIn" />
                <asp:BoundField DataField="email" HeaderText="E-Mail" SortExpression="email" />
                <asp:BoundField DataField="phone" HeaderText="联系电话" SortExpression="phone" />
                <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                <asp:BoundField DataField="age" HeaderText="年龄" SortExpression="age" />
                <asp:BoundField DataField="registerDate" HeaderText="注册日期" SortExpression="registerDate" />
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="ShowAllSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:onlineexamConnectionString %>"
            SelectCommand="SELECT [id], [stuId], [name], [classIn], [email], [phone], [sex], [age], [registerDate] FROM [t_student]" OnDeleted="ShowAllSqlDataSource_Deleted">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
